<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<%
	'## 환경 설정 가져오기
	ANTSQL = "SELECT * FROM tblAntConfig"	
	Set antRs=Server.CreateObject("ADODB.RecordSet")
	antRs.open ANTSQL, DbCon
	
	Response.Cookies("conf_company") = antRs("company")
	Response.Cookies("conf_compNm") = antRs("compTitle")
	Response.Cookies("conf_compImg") = antRs("compImg")
	Response.Cookies("conf_siteIP") = antRs("siteIP")
	Response.Cookies("conf_licenseNo") = antRs("licenseNo")
%>
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
<HTML xmlns="http://www.w3.org/1999/xhtml" lang="en">
<HEAD>
	<TITLE>::: <%=Request.Cookies("conf_compNm")%> ::::::</TITLE>
	<META http-equiv="Content-Type" content="text/html; charset=utf-8">
	<META http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<META http-equiv="Cache-Control" content="no-cache">
	<META http-equiv="Pragma" content="no-cache">
	<LINK rel="stylesheet" href="/inc/css/all.css" type="text/css" media="all" />
	<LINK rel="stylesheet" href="/inc/css/grid.css" type="text/css" />
	<LINK rel="stylesheet" href="/inc/css/sIFR-screen.css" type="text/css" />

	<script language = "JavaScript" src="/inc/js/calendar.js"></script>
	<script language = "JavaScript" src="/inc/js/jquery-1.8.3.js"></script>
	<script language = "JavaScript" src="/inc/js/common.js"></script>
	<script language = "JavaScript" src="/inc/js/jquery.cookie.js"></script>
	<script language="javascript">
	function chk_login()
	{
		if (!$("#uids").val()){
			alert("아이디를 입력해 주세요"); $("#uids").focus(); return false;
		}
		if (!$("#passwds").val()){
			alert("비밀번호를 입력해 주세요"); $("#passwds").focus(); return false;
		}
		
		if ($("#setId").is(":checked")) $.cookie("uid", $("#uids").val(), { expires: 365 });
		else $.cookie("uid", "");
		
		document.login.uid.value = $("#uids").val();
		document.login.passwd.value = $("#passwds").val();
		document.login.submit();
	}
	
	function fnEnter()
	{
		if(event.keyCode == "13")
		{
			chk_login();
			return;
		}
	}
	
	function funBrowserCheck(){ 
		var browserVer = 0 ; // 브라우저  버전정보 
	
		var browerName=navigator.appName;
		var browerAgent = navigator.userAgent;
	
		var browerType=""; // 브라우져 종류
	
		// 브라우져 종류 설정.
		if(browerName.charAt(0) == "M") browerType="";
		else if(browerName.charAt(0) == "N")
		{
			if(browerAgent.indexOf("Chrome") != -1) browerType="chrome";
			else if(browerAgent.indexOf("Firefox") != -1) browerType="Firefox";
			else if(browerAgent.indexOf("Safari") != -1) browerType="Safari";
		} 
		else 
		{ 
			browserVer = "??";
		}
		//	return browerType;
		document.login.destFolder.value = browerType;
	 }
	</script>
	<script language="javascript">
		$(window).load(function(){
			funBrowserCheck();			
			if($.cookie("uid")) 
			{
				$("#uids").val($.cookie("uid"));
				$("#setId").prop("checked","checked");
				$("#passwds").focus();
			}
			else  $("#uids").focus();
		}); 
	</script>

</HEAD>	
<BODY topmargin="0" leftmargin="0">

<form name="login" method="post" action="login.post.asp">
<input type="hidden" name="mode" value="checkLogin">
<input type="hidden" name="uid" value="">
<input type="hidden" name="passwd" value="">
<input type="hidden" name="destFolder" value="">
</form>

<div style="text-align:center;padding-top:200px">
<table border="0" cellpadding="0" cellspacing="0" width="400" align="center">
	<tr>
		<td width="100%" height="70" colspan="2" class="lTD_trbl" style="text-align:center;padding:5px 0 5px 0"><img src="<%=Request.Cookies("conf_compImg")%>" width="300"></td>
	</tr>
	<tr>
		<td width="40%" class="lTD_0rbl" style="height:30px;text-align:center;font-weight:bold;background-color:#eaf2fd;">아이디</td>
		<td width="60%" class="lTD_0rb0" style="height:30px;padding-left:10px;background-color:#eaf2fd;"><input type="text" name="uids" id="uids" class="inputBox" style="ime-Mode:inactive" tabindex="1"></td>
	</tr>
	<tr>
		<td width="40%" class="lTD_0rbl" style="height:30px;text-align:center;font-weight:bold;background-color:#eaf2fd;">비밀번호</td>
		<td width="60%" class="lTD_0rb0" style="height:30px;padding-left:10px;background-color:#eaf2fd;"><input type="password" name="passwds" id="passwds" class="inputBox" tabindex="2"  onKeyPress="fnEnter()"></td>
	</tr>
	<tr>
		<td width="100%" colspan="2" class="lTD_0rbl" style="text-align:right;padding-right:10px;height:30px;"><input type="checkbox" id="setId" style="border:0">아이디 저장 &nbsp; <input type="button" value="로그인" class="inputBtn" onClick="chk_login('login')"> </td>
	</tr>
</table>
</div>